import { baseName } from "../../utils"

export const activeRule = (item: any,basename) => {
  
  return item.iframe&&(baseName(basename, item.path)) ===  location.pathname
}
export const MicroApp = ({onLoad, entry})=>{
  return <iframe  onLoad={onLoad} style={{height:'100%',width:'100%',border:'none'}} src={entry} />
}
export default {
  activeRule,
  MicroApp,

}